
  This document was last modified: 30 July 2009. 


  Data and Codes for PSS Rejoinder.zip contains the following folders:


  Gauss Programs		folder that contains the following files

  
  gvarForc_2006Q4.txt	 	txt file (Main program, computes the Forecasts and RMSFEs)

  DMstatistic_2006Q4.txt        txt file (Subprogram, computes the Dielbold-Mariano statistics)


  ImportFiles                   folder that contains the input excel files that the gauss
                                program reads from described in section II below


  OtherFiles                    folder described in section IV below

  data_79Q1-06Q4                folder described in section IV below 




  The programs gvarForc_2006Q4.txt and DMstatistic.txt can be used to replicate the empirical results reported in:
 

     Rejoinder to Comments on Forecasting Economic and Financial Variables with Global VARs

     
     Based on the paper:

     M. Hashem Pesaran, Til Schuermann and L. Vanessa Smith (2009) - PSS(2009), "Forecasting Economic
     and Financial Variables with Global VARs",International Journal of Forecasting, forthcoming.                    
 

 *****************************************************************************************  

  Note  : All code was written using gauss6.0 for windows. Its use with later versions
        should be compatible, while its use with earlier gauss versions may be problematic.

 *****************************************************************************************  


     Contents:

    I.   INSTALLATION OF THE PROGRAMS
    II.  DESCRIPTION OF INPUT FILES
    III. DESCRIPTION OF OUTPUT FILES
    IV.  DESCRIPTION OF OTHER FOLDERS & FILES 


   I. INSTALLATION OF THE PROGRAMS


      The gvarForc_2006Q4.txt gauss code shares the same source codes and library codes as required to run gvarForc_2005Q4.txt, namely
      gvarlbForc.lib, gvarscForc.src, gvarlb2005Q4.lib and gvarsc2005Q4.src. These files are located in the "Data and Codes for PSS Paper" folder.
      See the Readme file in the "Data and Codes for PSS Paper" folder for their installation. 

       
    
    II. DESCRIPTION OF INPUT FILES
     

      All the input files that the gvar program reads from are located in the folder
      named ImportFiles. This folder consists of the following files:                       

       
     1. countrydata33_2006Q4.xls        : Excel workbook that contains the quarterly (1979Q1-2003Q4) DdPS (2007)
				   	  data for the 33 countries used in the GVAR, updated to 2006Q4 as described
				   	  in the pdf file, Supplement for PSS (2009) Rejoinder located in the OtherFiles
                                          folder. Note that the number "8934567" is used when data are not available.
                                 	
     2. tradematrix8006.xls      	: Annual trade figures for the period 1980-2006. Updated version of the trade 
					  figures in DdPS (2007).

     3. Models19_DdPS-GVAR&DHPS-GVAR.xls: Excel workbook specifying the models considered in the forecasting exercise as 
					  described  in PSS (2009).
					  

     4. xforc_1QuarterAhead_2006Q4.xls  : Actual data and one quarter ahead forecasts over the period 2004Q1-2006Q4 of the 
                                   	  individual GVAR models and benchmark models across the 10 estimation windows. The 
                                   	  last four sheets correspond to the benchmark models in the following order: AR(1),  
                                   	  AR(1) with trend, Random Walk (RW)and RW with drift. The first 19 sheets correspond 
				   	  to the models in the order specified in the Models19_DdPS-GVAR&DHPS-GVAR file.
                                   	  
                                     
                           
  For a description of the rest of the files not mentioned above see the Readme file in the GVARFORC folder.


     III. DESCRIPTION OF OUTPUT FILES 
   

        All the files described below are extracted to the forecast folder:

           
      1. #models.xls       	      : gives the number of models, 23 in total (19+4benchmarks),
                             		for which the RMSFE computations have just been completed.
                             		This allows to monitor the program and have an idea at what stage it
                             		is at.

      2. xforc_2006Q4.xls  	      : Actual data and one to twelve quarter ahead forecasts (2004Q1-2006Q4) of the 
                             		individual GVAR models and benchmark models across the 10 estimation windows. 
                             		See xforc_1QuarterAhead for the model ordering. Note that the xforc_1QuarterAhead_2006Q4
			     		file is a subset of xforc_2006Q4 containing only the one step ahead forecasts.
                             		To identify the variable and country name use the codes in the file
                             		CountryVariableNames&Codes.  


      3. RMSFE_Tables_2006Q4.xls      : Country specific RMSFEs (190: 19modelsx10windows) and averages for the
                             		different country groupings over the period 2004Q1-2006Q4. The GVAR-AveAve 
                              		forecast is at the intersection of Ave_m (Average across models for a specific 
                              		estimation window) and Ave_W (Average across estimation windows for a particular 
                              		model). Use the Template_RMSFE file_2006Q4 to view the averages of the RMSFE across 
                              		the 3 different groupings mentioned below.   

      4. Exceedence_Tables_2006Q4.xls : These results are based on the RMSFE results. One indicates that the
                                 	GVAR-AveAve RMSFE error exceeds the individual GVAR model RMFSE. #Exceedence 
                                 	sums the number of ones and EXceedence(%) computes the total number of ones
                                 	divided by the total number of RMSFE entries (190 in total). 
                                 	The same for the benchmarks models.     


      5. DM_statistics_2006Q4         : Panel Diebold Mariano statistic to determine whether the forecasts from 
                              		the GVAR over the period 2004Q1-2006Q4 can be statistically distinguished 
                              		from a benchmark forecast at conventional significance levels.    
     
 


        IV. DESCRIPTION OF OTHER FOLDERS & FILES

      i. OtherFiles

	Supplement for PSS (2009) Rejoinder : Contains a description of the GVAR data 1979Q1-2006Q4 and the lag orders of the
					      multivariate (VAR) benchmark given in the rejoinder.

        CountryVariableName&Codes.xls	    : Contains the names and the codes of the countries and variables used in the
                                              forecasting exercise of the GVAR.

        GVAR-AveAVe Forecasts_2006Q4.xls    : Gives the actual data and GVAR-AVeAve one quarter ahead forecasts over the period 2004Q1-2006Q4.

        xforc_VAR_2006Q4		    : Recursive expanding Window one step ahead VAR foreacsts. The VAR model is included as a multivariate 
 					      benchmark in the PSS (2009) rejoinder. The lag orders used for the individual country VARs can be
					      found in the pdf file, Supplement for PSS (2009) Rejoinder.

        Template_RMSFE_2006Q4.xls	    : Contains excel template for viewing the average RMSFE results over the period 2004Q1-2006Q4 across
					      the 3 groupings: Industrialised plus China, All Countries Excluding LA, and All Countries. Note that
					      this template contains the RMSFE tables that will be produced from running the gvarForc_2006Q4.prg file. 
					      


      ii. data_79Q1-06Q4 

          Contains the individual country csv files with data over the period 1979Q1-2006Q4 for the domestic and foreign (star)
   	  variables used in the country-specific VARX* models of the GVAR variants. For more details see the Readme_Data file in
          the data_79Q1-06Q4 folder. 

          
   

     L.Vanessa Smith
     lvs21@cam.ac.uk
    